package com.gw.booking.dto.common;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

public class CaptchaGetDto {
	@ApiModelProperty(value="手机号", required = true)
	@NotEmpty
	@Pattern(regexp="[1-9][0-9]{10}")
	private String mobile;
	@ApiModelProperty(value = "类型【forget_password:找回密码;change_password:修改密码;change_email:修改邮箱;" +
			"change_mobile:修改手机号;pay_store_order:商城订单支付;binding_member:绑定成员;register_mobile:注册会员】"
			, allowableValues = "forget_password,change_password,change_email,change_mobile,pay_store_order,binding_member,register_mobile")
	private String type;
	@ApiModelProperty(value = "用户类型", allowableValues = "customer,merchant")
	private String userType;

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}
}
